package com.teemo.equipment.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.teemo.equipment.domain.entity.Hero;
import com.teemo.equipment.domain.vo.BasePageVO;
import com.teemo.equipment.domain.vo.HeroPageVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author Teemo
 */
@Mapper
public interface BasePageVOMapStruct {

    BasePageVOMapStruct INSTANCE = Mappers.getMapper(BasePageVOMapStruct.class);

    @Mapping(source ="current",target = "pageNum")
    @Mapping(source ="size",target = "pageSize")
    BasePageVO toBasePageVO(Page page);

}
